package cn.fenghua.demoproject2.service.impl;

import cn.fenghua.demoproject2.dao.User;
import cn.fenghua.demoproject2.mapper.UserMapper;
import cn.fenghua.demoproject2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> list() {
        return userMapper.list();
    }
}
